Skip to content

Optimize swap info selectors#998

Draft
saim256 wants to merge 1 commit into
eigenwallet:masterfrom
saim256:optimize-swap-info-selectors-727
Draft

Optimize swap info selectors#998
saim256 wants to merge 1 commit into
eigenwallet:masterfrom
saim256:optimize-swap-info-selectors-727

Conversation

@saim256
Copy link
Copy Markdown

@saim256 saim256 commented May 11, 2026

Refs #727

Summary

  • Move sane swap info filtering into a memoized selector.
  • Add memoized selectors for date-sorted swap infos and resumable swap counts.
  • Update hooks to reuse those selectors instead of recomputing filter/sort work during unrelated renders.

Verification

  • git diff --check
  • corepack yarn install --immutable
  • corepack yarn eslint src/store/hooks.ts src/store/selectors.ts (passes; existing unrelated warning remains in DepositAndChooseOfferPage.tsx)
  • corepack yarn tsc --noEmit (blocked by missing generated src/models/tauriModel.ts bindings in a fresh checkout)

@Einliterflasche
Copy link
Copy Markdown

Per our AI policy we require all communication to be exclusively human written. Until this requirement is met, we can't spare the effort to review this.

@Einliterflasche Einliterflasche marked this pull request as draft May 11, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants